//
//  Me2DayOAuthResult.h
//  CairnStory
//  www.cairnstory.com
//
//  Created by saturna on 11. 3. 18..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#pragma mark -
#pragma mark constants define

// TODO : me2day application key
//    http://me2day.net/me2/apps/apply 에서 신청
#define kMe2DayAppKey @"me2day_application_key"


// TODO: callback url
//    http://me2day.net/me2/apps/edit_appkey 에서 설정
//    example : http://www.callbackhost.com/callback/path
#define kAuthCallbackHost @"www.callbackhost.com"
#define kAuthCallbackPath @"/callback/path"



#pragma mark -
#pragma mark Me2DayOAuthResult

@interface Me2DayOAuthResult : NSObject
{
	NSString* m_token;		// token
	NSString* m_userId;		// user_id
	NSString* m_userKey;	// user_key
	NSString* m_appKey;
	BOOL m_isAuthorized;	// result
	NSString* m_ukey;
}

@property (nonatomic,readonly) NSString* token;
@property (nonatomic,readonly) NSString* userId;
@property (nonatomic,readonly) NSString* userKey;
@property (nonatomic,readonly) NSString* appKey;
@property (nonatomic,readonly) BOOL isAuthorized;


- (id)initWithDictionary:(NSDictionary*)auth andAppKey:(NSString*)appKey;

- (NSString*)generateUKey;

@end
